package it.polito.connectedcar.util;

/**
 * 
 * @author Nicola Aresta
 * 
 */
public class Constants {

    public static final int TOKEN_LENGTH = 4;

    public static final String TEST_TCC_ADDRESS_HOST = "localhost";
    public static final int TEST_TCC_FROM_VEHICLE_ADDRESS_PORT = 8080;
    public static final int TEST_TCC_FROM_TRAFFICLIGHT_ADDRESS_PORT = 8180;

    public static final byte VEHICLE_TYPE_CODE = 0x01;
    public static final byte TRAFFIC_LIGHT_TYPE_CODE = 0x02;
    public static final byte TCC_TYPE_CODE = 0x03;
    public static final byte INDUCTIVE_LOOP_TYPE_CODE = 0x04;

    public static final byte VEHICLE_UPDATE_MESSAGE_CODE = 0x01;
    public static final byte VEHICLE_GOODBYE_MESSAGE_CODE = 0x02;
    public static final byte TCC_NEW_ZONE_MESSAGE_CODE = 0x03;
    public static final byte TCC_CHANGE_TOKEN_MESSAGE_CODE = 0x04;
    public static final byte TCC_VEHICLES_LIST_MESSAGE_CODE = 0x05;
    public static final byte TCC_TRAFFIC_LIGHT_UPDATE = 0x06;

    public static final byte TRAFFIC_LIGHT_UPDATE = 0x07;

}
